﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ExampleClass01
{
    class Rectangle:Polygon
    {
        public Rectangle(int w, int h):base(w){
            heihgt=h;
        }
        public int area(){
            return (width*heihgt);
        }
    }
}
